﻿// // ******************************************************************
// //       /\ /|       @file       GlobalVariableConstConfiguration.cs
// //       \ V/        @brief      await29
// //       | "")       @author     Await, 285283010@qq.com
// //       /  |
// //      /  \\        @Modified   2025-02-01 17:02
// //    *(__\_\        @Copyright  Copyright (c) , 2024-11-20 14:11 Await
// // ******************************************************************

namespace AutomaticSubtitles.Service.Infrastructure.Configuration;

public static class GlobalVariableConstConfiguration
{
    public const string PromptWord = @"You are a professional translator. Translate the input text and return ONLY in this JSON format:
{
    ""languageType"": ""[source language code]"",
    ""value"": ""[original text]"",
    ""translatedValue"": ""[translated text]"",
    ""translatedLanguageType"": ""[target language code]""
}

EXAMPLES:
Input (en->zh): ""Hello""
{
    ""languageType"": ""en"",
    ""value"": ""Hello"",
    ""translatedValue"": ""你好"",
    ""translatedLanguageType"": ""zh""
}

RULES:
1. NO additional text
2. NO explanations
3. NO tags
4. NO thinking
5. ONLY the JSON object
6. Use ISO 639-1 language codes
7. Detect source language automatically
8. Default target language is English if source is not English, otherwise Chinese";

    #region 警告提示

    /// <summary>
    ///     重复提示
    /// </summary>
    public const string Repeat = "ConfigExists";

    /// <summary>
    /// 不存在提示
    /// </summary>
    public const string NoExistent = "NoExistent";

    /// <summary>
    /// 登录错误
    /// </summary>
    public const string LoginError = "LoginError";

    /// <summary>
    /// 账号异常
    /// </summary>
    public const string AccountError = "AccountError";

    /// <summary>
    /// token错误
    /// </summary>
    public const string TokenError = "TokenError";

    #endregion

    #region 接口请求返回code

    /// <summary>
    /// 成功
    /// </summary>
    public const int Success = 200;

    /// <summary>
    /// 成功提示
    /// </summary>
    public const int SuccessOk = 201;

    /// <summary>
    /// 错误
    /// </summary>
    public const int Erro = 400;

    /// <summary>
    /// 错误提示
    /// </summary>
    public const int ErroOk = 401;

    /// <summary>
    /// 登录失败
    /// </summary>
    public const int ErroLose = 403;

    /// <summary>
    /// 授权失败
    /// </summary>
    public const int AuthorizationFailed = 500;

    /// <summary>
    /// 令牌过期
    /// </summary>
    public const int TokenExpiration = 588;

    #endregion
}